﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BLToolkit.Mapping;
using BLToolkit.Validation;

namespace MvcVietAir.Models
{
    public class Contact
    {
        public int Id { get; set; }
        [MapField("Name")]
        [Required("Họ tên không được để trống")]
        public string HoTen { get; set; }
        [MapField("Email")]
        [System.ComponentModel.DataAnnotations.DataType(System.ComponentModel.DataAnnotations.DataType.EmailAddress)]
        public string ThuDienTu { get; set; }
        [MapField("Phone")]
        [System.ComponentModel.DataAnnotations.DataType(System.ComponentModel.DataAnnotations.DataType.PhoneNumber)]
        public string SoDienThoai { get; set; }
        [MapField("SubjectMessage")]
        public string Subject { get; set; }
        [MapField("ContentMessage")]
        public string Content { get; set; }
    }
}